/**
 * There are code generation
 */
package com.neusoft.lohas.modules.ivm.dao.product;

import org.springframework.stereotype.Repository;

import com.neusoft.lohas.common.persistence.BaseDao;
import com.neusoft.lohas.common.persistence.Parameter;
import com.neusoft.lohas.modules.ivm.entity.product.Supplier;

/**
 * 供应商DAO接口
 * @author Jackie.Liu
 * @version 2014-12-30
 */
@Repository
public class SupplierDao extends BaseDao<Supplier> {

	public Supplier findBySql(String merchantId, String name) {
		return getByHql("from Supplier where merchant.id = :p1 and name = :p2 and delFlag = :p3", new Parameter(merchantId, name, Supplier.DEL_FLAG_NORMAL));
	}
	
}
